#ifndef _TFT_H
#define _TFT_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "fsl_lpspi.h"
#include "fsl_gpio.h"

#ifdef __cplusplus
}
#endif
#include "Device/tft/TFT180_base.h"
class TFT_RT1064:public TFT
{
private:

    LPSPI_Type* base=nullptr;
    lpspi_transfer_t masterXfer;

    virtual void LCD_RES_Clr() override;
    virtual void LCD_RES_Set() override;
    virtual void LCD_DC_Clr() override;
    virtual void LCD_DC_Set() override;
    virtual void LCD_CS_Clr() override;
    virtual void LCD_CS_Set() override;
    //virtual void LCD_BLK_Clr() override;
    //virtual void LCD_BLK_Set() override;
    virtual void LCD_Writ_Bus(uint8_t dat) override;
    virtual void LCD_WR_DATA(uint16_t dat) override;

public:
    TFT_RT1064(LPSPI_Type* _base,uint8_t _dir,uint16_t _width,uint16_t _height):
    TFT(_dir,_width,_height),base(_base){}
    
};

#endif
